package com.upic.service;

import com.upic.po.Question;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface QuestionService {
    Question saveQuestion(Question question);

    String deleteQuestion(long questionId);

    Page<Question> searchQuestion(Pageable pageable);

    List<Question> searchQuestion();

    Question findOne(long questionId);

    Question updateQuestion(Question question);

}
